<?php
($user_id = session('user_id')) || abort('请先登录');
$info = (int)$db->getOne('SELECT pay_points FROM '.$ecs->table('users')." WHERE user_id={$user_id}");
return ['pay_points' => $info];
